export interface menuProp {
  name: string;
  children: menuChildrenProp[];
}

export interface menuChildrenProp {
  name: string;
  children: menuSonProp[];
}

export interface menuSonProp {
  name: string;
  path: string;
  icon: string;
  skip: boolean;
  permission?: string;
  flag?: number | string;
}

export const menu: menuProp[] = [
  {
    name: "任务",
    children: [
      {
        name: "打卡", // 存
        children: [
          {
            name: "每日打卡",
            path: "/pages/task/dayTask/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      }
    ]
  },
  {
    name: "日志",
    children: [
      {
        name: "每日日志", // 存
        children: [
          {
            name: "日志",
            path: "/pages/log/search/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      }
    ]
  },
  {
    name: "股票",
    children: [
      {
        name: "买入卖出", // 存
        children: [
          {
            name: "登记",
            path: "/pages/stock/register/index",
            icon: "icon-daohuoguanli",
            skip: true
          },
          {
            name: "批量登记",
            path: "/pages/stock/batchRegister/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      },
      {
        name: "持仓", // 存
        children: [
          {
            name: "持仓明细",
            path: "/pages/stock/positionsDetail/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      },
      {
        name: "计算", // 存
        children: [
          {
            name: "价格计算",
            path: "/pages/stock/calculate/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      },
      {
        name: "其他", // 存
        children: [
          {
            name: "工作日历",
            path: "/pages/stock/calender/index",
            icon: "icon-daohuoguanli",
            skip: true
          }
        ]
      }
    ]
  },
  {
    name: "我的",
    children: [
      {
        name: "基础设置",
        children: [
          {
            name: "主题设置",
            path: "/pages/my/theme/index",
            icon: "icon-shezhi",
            skip: true,
            permission: ""
          }
        ]
      }
    ]
  }
];

export default menu;
